package com.woniu.mall.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 *
 * </p>
 *
 * @author 坤
 * @since 2023-05-22
 */
@Getter
@Setter
@TableName("t_mall_product")
@ApiModel(value = "MallProduct对象", description = "")
public class MallProduct implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("商品id")
      @TableId(value = "product_id", type = IdType.AUTO)
      private Integer productId;

      @ApiModelProperty("商品标题")
      private String title;

      @ApiModelProperty("商品子标题")
      private String subTitle;

      @ApiModelProperty("商品描述")
      private String description;

      @ApiModelProperty("图片")
      private String pic;

      @ApiModelProperty("商品价格")
      private BigDecimal price;

      @ApiModelProperty("销量")
      private Integer sale;

      @ApiModelProperty("销量展示")
      private String showSale;

      @ApiModelProperty("货号")
      private String productSn;

      @ApiModelProperty("分类名称")
      private String categoryName;

      @ApiModelProperty("分类图标")
      private String categoryIcon;

      @ApiModelProperty("商家编号")
      private Integer storeId;

      @ApiModelProperty("商家名称")
      private String storeName;

      @ApiModelProperty("排序")
      private Integer sort;

      @ApiModelProperty("库存")
      private Integer stock;

      @ApiModelProperty("删除状态")
      @TableLogic
      private Byte deleteStatus;

      @ApiModelProperty("新品状态")
      private Byte newStatus;

      @ApiModelProperty("推荐状态")
      private Byte recommandStatus;

      @ApiModelProperty("审核状态")
      private Byte verifyStatus;

      @ApiModelProperty("最后更新时间")
      @TableField(fill = FieldFill.INSERT_UPDATE)
      private Date updateTime;

}
